package org.jeecg.modules.chg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.chg.entity.ChgPayments;
import org.jeecg.modules.chg.vo.ChgPaymentsCountVo;

import java.util.List;

/**
 * @Description: 缴费记录
 * @Author: jeecg-boot
 * @Date:   2022-02-21
 * @Version: V1.0
 */
public interface ChgPaymentsMapper extends BaseMapper<ChgPayments> {

    /**预缴充值-取消列表*/
    public IPage<ChgPayments> cancelPageList(Page page, @Param("query") ChgPayments query);

    //逻辑删除
    public boolean deleteFlagId(@Param("id") String id);

    /**
     * 查询未开票的缴费清单
     * @param accCode
     * @param createTimeBegin
     * @param createTimeEnd
     * @return
     */
    public List<ChgPayments>selectBillNoOpen(@Param("accCode") String accCode
            ,@Param("createTimeBegin") String createTimeBegin
            ,@Param("createTimeEnd") String createTimeEnd);

    /**查询预支付状态订单 -有租户不用过滤 则多租户屏蔽某个特定mapper接口的方法*/
    //@InterceptorIgnore(tenantLine = "true")
    public List<ChgPayments> selectPrePayOrder(@Param("prepayId") String prepayId, @Param("status") String status);


    /**收费实缴汇总-按天按收费员*/
    public List<ChgPaymentsCountVo> chargePaymentsCount(@Param("finBeginDate") String finBeginDate
            , @Param("finEndDate") String finEndDate);

}
